//
//  CMDBBaseCollectionViewCell.swift
//  CMDB
//
//  Created by 曹桂祥 on 17/4/12.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBBaseCollectionViewCell: UICollectionViewCell {
    
    var indexPath : NSIndexPath?
    
    var textColor : UIColor?
    
    var titleLabel : UILabel = UILabel.getInstance()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupCollectionCell()
        
        buildCollectionCell()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension CMDBBaseCollectionViewCell{
    
    func setupCollectionCell(){
    
        
    }
    
    func buildCollectionCell(){
        
        
    }
}


extension CMDBBaseCollectionViewCell{
    
    override func onItemClickType(itemClickType: String?, data: AnyObject?, indexPath: NSIndexPath?) {
        super.onItemClickType(itemClickType, data: data, indexPath: indexPath)
    }
}

extension CMDBBaseCollectionViewCell{
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel.frame = bounds
    }
}
